package com.zygh.policeasset.service;

import com.zygh.policeasset.mapper.DepartmentMapper;
import com.zygh.policeasset.pojo.Department;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/service/DepartmentService.class */
public class DepartmentService {
    @Autowired
    DepartmentMapper departmentMapper;

    public Integer add(Department department) {
        return this.departmentMapper.add(department);
    }

    public Integer update(Department department) {
        return this.departmentMapper.update(department);
    }

    public Integer delete(Integer id) {
        return this.departmentMapper.delete(id);
    }

    public List<Department> findDepartment(Integer id, String departmentNum, String departmentName) {
        return this.departmentMapper.findDepartment(id, departmentNum, departmentName);
    }
}